// ProteinVista.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "ProteinVista.h"
#include "MainFrm.h"
#include "TutorialDialog.h"


void CProteinVistaApp::OnAppTutorial()
{
	USES_CONVERSION;
	CString strTutorialHTM;
	strTutorialHTM.Format( _T("%sTutorial1.htm"), ((CProteinVistaApp*)AfxGetApp())->m_strBaseTutorialPath);

	((CMainFrame*)AfxGetMainWnd())->m_paneManager.ShowPane(IDR_PANE_TUTORIAL);
	//	((CMainFrame*)AfxGetMainWnd())->m_pTutorialPane->Navigate(strTutorialHTM);
}

void CProteinVistaApp::OnPlugInScriptHelp()
{
	if ( (HandleToLong((ShellExecute(AfxGetMainWnd()->GetSafeHwnd(), _T("open"), ((CProteinVistaApp*)AfxGetApp())->m_strBaseScriptHelpPath + _T("index.html") , NULL, ((CProteinVistaApp*)AfxGetApp())->m_strBaseScriptHelpPath , SW_SHOWNORMAL ) ) ) ) <= 32 )
	{
		AfxMessageBox(_T("Cannot execute web browser such as Internet explorer. Check your system."));
	}
}